package com.softserveinc.parser;

public class ParserFactory {

	private static final String XML = "xml";

	private ParserFactory() {
	}

	public static Parser createParser(final String feedbackType) {
		if (feedbackType.equalsIgnoreCase(XML)) {
			return new XMLParser();
		} else {
			return new JsonParser();
		}
	}
}
